<?php

/* @var $this \yii\web\View */
/* @var $content string */

use yii\helpers\Html;
use frontend\modules\yii2\widgets\layouts\dockerdoc\assets\DockerDocAsset;
DockerDocAsset::register($this);
?>
<?php $this->beginPage() ?>
<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" href="https://www.yiichina.com/favicon.ico?v=1528501659">

    <?php $this->registerCsrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php  $this->head() ?>

</head>

<body>
<?php $this->beginBody() ?>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <?php include_once 'head.php';?>
</nav>

<div class="container-fluid">

    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar" id="sidebar">
            <?= frontend\modules\yii2\widgets\layouts\sidebar\Sidebar::widget([
                "items" => [
                    ["label" => "简介", "url" => "/docs"],
                    ["label" => "安装", "url" => "/docs/install", "items" => [
                        ["label" => "源码安装法", "url" => "/docs/install/source"],
                        ["label" => "Docker", "url" => "/docs/install/docker"],
                        ["label" => "Yiisoft容器安装法", "url" => "/docs/install/docker/yiisoft"],
                        ["label" => "自定义容器安装法", "url" => "/docs/install/docker/custom"],
                    ]],
                    ["label" => "目录结构", "url" => "/docs/layout"],
                ]
            ])?>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main cms-article">

            <div class="row">
                <article class="col-sm-12 col-md-10">
                    <?= $content ?>
                </article>
                <div class="col-md-2 hidden-xs hidden-sm">
                    <?=\frontend\modules\yii2\widgets\layouts\anchor\Anchor::widget()?>
                </div>
            </div>
            <footer class="footer vertical-container">
                <p><span>浙ICP备2021007911号</span>Powered by @陈致威</p>
            </footer>
        </div>


    </div>
</div>


<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
